package com.hicorp.segment.pojo.bo;

import com.hicorp.segment.pojo.po.Menu;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
import java.util.List;

/**
 * @Author: wqs
 * @Date: Created in 11:52 2021/5/25
 * @Description:
 * @ChineseDescription:
 * @Modified_By:
 */
@Getter
@Setter
public class UserForSecurityBO extends User {

    private String userNo;

    private String staffNo;

    private String imgPath;

    private String authorityCode;

    private String queryCode;


    private List<Menu> menuList;


    public UserForSecurityBO(String username, String password, Collection<? extends GrantedAuthority> authorities, String userNo, String staffNo, String imgPath,String authorityCode,String queryCode, List<Menu> menuList) {
        super(username, password, authorities);
        this.userNo = userNo;
        this.imgPath = imgPath;
        this.staffNo = staffNo;
        this.authorityCode = authorityCode;
        this.queryCode = queryCode;
        this.menuList = menuList;
    }
}
